package com.service;
import com.entity.User;
import com.common.utils.Page;
/**
 * 用户Service层接口
 */
public interface UserService {
	// 通过账号和密码查询用户
	public User findUser(String userid, String password);
	
	public User findUsername(String username);
	
	public User findUserid(String userid);

	public void addUser(String tel, String password, String username, String maxID);
	public String checktel(String tel);
	public String maxID();

	Page<User> findUserList(Integer page, Integer rows, String username);

	public User getUserById(Integer id);

	public int updateUser(User user);

	public int deleteUser(Integer id);

	public int createUser(User user);
}
